home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / skey40.zip / CGACOLOR.BAT < prev    next >
DOS Batch File  |  1991-12-23  |  2KB  |  44 lines

  1. echo off
  2. echo 
  3. cls
  4. stackey {cu=-}
  5. echo This demonstration program will illustrate STACKEY's L command
  6. echo on the CGA.  What it does depends on the mode.
  7. echo:
  8. echo  ENJOY THE DEMONSTRATION
  9. stackey /u/   ;save values of flags to restore users options
  10. stackey /i n/ ;turn off smart processing to prevent stray keypresses
  11. stackey !     ;   and flush buffer from causing havoc; stop test mode
  12. stackey {w=25}
  13. cls
  14. echo In text mode, the border color changes
  15. stackey {w=32}L1{w=16}L2{w=16}L3{w=16}L4{w=16}L5{w=16}L6{w=16}L7{w=16}L8
  16. stackey {w=16}L9{w=16}L10{w=16}L11{w=16}L12{w=16}L13{w=16}L14{w=16}L15{w=16}L0
  17. cls
  18. stackey {mode=4}
  19. echo In medium resolution graphics mode, the
  20. echo background and border color are changed
  21. stackey {w=32}L1{w=16}L2{w=16}L3{w=16}L4{w=16}L5{w=16}L6{w=16}L7{w=16}L8
  22. stackey {w=16}L9{w=16}L10{w=16}L11{w=16}L12{w=16}L13{w=16}L14{w=16}L15{w=16}L0
  23. echo:
  24. echo:
  25. echo With the P command, you can change the
  26. echo foreground palette of three colors
  27. stackey {w=16}
  28. stackey P0{w=32}L1{w=16}L2{w=16}L3{w=16}L4{w=16}L5{w=16}L6{w=16}L7{w=16}L8
  29. stackey {w=16}L9{w=16}L10{w=16}L11{w=16}L12{w=16}L13{w=16}L14{w=16}L15{w=16}L0
  30. if not exist boxes.com goto noboxes
  31. boxes
  32. stackey {w=20}P1{w=32}P0{w=32}P1{w=32}P0{w=32}
  33. :noboxes
  34. stackey {mode=6}
  35. echo In high resolution graphics mode, the foreground color is changed
  36. echo:
  37. stackey {w=32}L1{w=16}L2{w=16}L3{w=16}L4{w=16}L5{w=16}L6{w=16}L7{w=16}L8
  38. stackey {w=16}L9{w=16}L10{w=16}L11{w=16}L12{w=16}L13{w=16}L14{w=16}L15{w=16}
  39. stackey {mode=3 cu=+}
  40. stackey /o/ ; remember to restore the users options
  41. echo 
  42. cls
  43.  
  44.